'use strict';
const {
  Model
} = require('sequelize');
module.exports = (sequelize, DataTypes) => {
  class bones extends Model {
    /**
     * Helper method for defining associations.
     * This method is not a part of Sequelize lifecycle.
     * The `models/index` file will call this method automatically.
     */
    static associate(models) {
      // define association here
    }
  }
  bones.init({
    field: DataTypes.STRING,
    name: DataTypes.STRING,
    size: DataTypes.STRING,
    model_name: DataTypes.STRING,
    model_type: DataTypes.STRING,
    master_slave: DataTypes.STRING,
    root: DataTypes.STRING,
    parent: DataTypes.STRING,
    sort:DataTypes.INTEGER,
  }, {
    sequelize,
    modelName: 'bones',
  });

  sequelize.sync()
  return bones;
};
